<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" />
<script language="javascript" src="js/jquery-1.4.2.min.js"></script>

<title>商家列表</title>
</head>

<body>
<div id="man_zone">

  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1">
    <tr>
      <td width="54%" align="left">
      <input type="button" onclick="location.href='accountcharge_list.php?action=clear&date=7'" name="Submit2" value="清空一周前未附款订单" />
	   <input type="button" onclick="location.href='accountcharge_list.php?action=clear&date=30'" name="Submit2" value="清空一个月前未附款订单" />
	   <input type="button" onclick="location.href='accountcharge_list.php?action=clear'" name="Submit" value="清空所有未附款订单" />
      &nbsp;<a href="accountcharge_list.php?action=downxls">【下载EXCEL表格格式】</a></td>
      <td width="46%" align="right"><form id="seach" name="seach" method="get" action="">
  &nbsp;&nbsp;订单号：
  <input name="sn" type="text" id="sn" size="15" />
  &nbsp;&nbsp;用户名：
  <input name="uname" type="text" id="uname" size="15" />
  &nbsp;
  <input type="submit" name="Submit3" value="搜索" />
      </form></td>
    </tr>
  </table>
<form method="post" action="?action=dels" name="grouplist" id="grouplist">
  <table width="99%" align="center"  border="0" cellpadding="3" cellspacing="1" class="table_style">
    <tr>
      <th width="4%">编号</th>
      <th width="19%">订单号</th>
      <th width="9%">充值金额</th>
      <th width="9%">用户ID</th>
      <th width="10%">用户名</th>
      <th width="10%">支付方式</th>
      <th width="15%">生成时间</th>
      <th width="13%">付款时间</th>
      <th width="11%">状态</th>
    </tr>
	<?php if(is_array($dataarray)){foreach($dataarray as $value){?>
    <tr class="odd_row">
      <td align="center"><?php echo $value['aid']?></td>
      <td><?php echo $value['sn']?>&nbsp;</td>
      <td><?php echo $value['money']?></td>
      <td><?php echo $value['uid']?></td>
      <td>&nbsp;<?php echo $value['uname']?></td>
      <td><?php echo $value['payname']?></td>
      <td><?php if($value['addtime']!=0)echo date("Y-m-d H:i:s",$value['addtime'])?></td>
      <td><?php if($value['updatetime']!=0)echo date("Y-m-d H:i:s",$value['updatetime'])?></td>
      <td><?php echo $CHARGESTATE[$value['state']]?></td>
    </tr>
	<?php }}else{?>
	<tr><td colspan=9>暂无数据..............</td></tr>
	<?php };?>
  </table>
  

  <div style="width:99%;margin:0px auto;">

  
    <?php echo multi($total,$pagesize,$page,"");?>
  </div>
  </form>
</div>
</body>
</html>
